<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
</head>

<body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4"
      offset="0">
<table width="95%" cellpadding="0" cellspacing="0"
       style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">
    <tr>
        (本邮件由系统自动发出，无需回复！)<br/>
        各位好，以下是${PROJECT_NAME}项目构建信息<br/>
        <td><font color="#CC0000">构建结果 - ${BUILD_STATUS}</font></td>
    </tr>
    <tr>
        <td><br/>
            <b><font color="#0B610B">构建信息 - ${BUILD_STATUS}</font></b>
            <hr size="2" width="100%" align="center"/>
        </td>
    </tr>
    <tr>
        <td>
            <ul>
                <li>项目名称：${PROJECT_NAME}</li>
                <li>构建编号：第${BUILD_NUMBER}次构建</li>
                <!--
                <li>SVN 版本： ${SVN_REVISION}</li>
                -->
                <li>触发原因：${CAUSE}</li>
                <li>构建状态：${BUILD_STATUS}</li>
                <li>构建日志：<a href="${BUILD_URL}console">${BUILD_URL}console</a></li>
                <li>构建地址：<a href="${BUILD_URL}">${BUILD_URL}</a></li>
                <li>工作目录：<a href="${PROJECT_URL}ws">${PROJECT_URL}ws</a></li>
                <li>项目地址：<a href="${PROJECT_URL}">${PROJECT_URL}</a></li>

                <li>
                    <a href="http://1xx.1xx.3.xx:81xx/plateform-backend/report/interfaceReport/xxx/${BUILD_TIMESTAMP}/index.html">查看代码检测报告</a>
                </li>
            </ul>

            <h4><font color="#0B610B">测试结果</font></h4>
            <hr size="2" width="100%"/>
            <div>
                本次测试共执行<b>${TEST_COUNTS}</b>个用例，
                成功<b style="color: green">${TEST_COUNTS,var="pass"}</b>个，
                失败<b style="color: red">${TEST_COUNTS,var="fail"}</b>个，
                跳过<b style="color: #FFEB3B">${TEST_COUNTS,var="skip"}</b>个。
            </div>

            <h4><font color="#0B610B">失败用例</font></h4>
            <hr size="2" width="100%"/>
            $FAILED_TESTS<br/>

            <h4><font color="#0B610B">变更记录</font></h4>
            <hr size="2" width="100%"/>
            <!-- <ul>
            ${CHANGES_SINCE_LAST_SUCCESS,reverse=true,format="%c",changestFormat="%d[%a]%m"}
            </ul>
             -->变更明细：<a href="${PROJECT_URL}changes">${PROJECT_URL}changes</a><br/>


        </td>
    </tr>
    <tr>
        <td><b><font color="#0B610B">构建日志 (最后 100行):</font></b>
            <hr size="2" width="100%" align="center"/>
        </td>
    </tr>
    <tr>
        <td>Test Logs (if test has ran): <a
                href="${PROJECT_URL}ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip">${PROJECT_URL}/ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip</a>
            <br/>
            <br/>
        </td>
    </tr>
    <tr>
        <td><textarea cols="80" rows="30" readonly="readonly"
                      style="font-family: Courier New">${BUILD_LOG, maxLines=100}</textarea>
        </td>
    </tr>
</table>
</body>
</html>
